/**
 * @author 小童
 * @version 1.0
 * @date 2022-04-06
 */
import {getRequest, postRequest} from "@/util/axios";

export  const getRewardByPage = (reward)=>postRequest('/reward/getRewardByPage',reward)

export  const addReward = (reward)=>postRequest('/reward/add',reward)

export  const updateReward = (reward)=>postRequest('/reward/update',reward)

export  const deleteReward = (id)=>getRequest('/reward/remove',{id})

export const getAllReward = () =>getRequest('/reward/getAllReward');

export const getAllRewardMapping = (rewardMapping) =>postRequest('rewardMapping/getRewardMappingByPage',rewardMapping)

export const deleteRewardMapping =(id)=>getRequest('/rewardMapping/remove',{id})

export const addRewardMapping = (rewardMapping) =>postRequest('rewardMapping/add',rewardMapping)

export const updateRewardMapping = (rewardMapping) =>postRequest('rewardMapping/update',rewardMapping)
